package com.yellowpage.omc.datacollect.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

/**
 * DataCollectBatch entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "OMC_DATA_COLLECT_BATCH")
public class DataCollectBatch implements java.io.Serializable {

	// Fields

	private Long dataCollectBatchId;
	private String batchNum;
	private String fileName;	
	private String source;
	private String status;
	private Long dataCount;
	private Long importCount;
	private Long createUser;
	private Date createTime;
	private Date lastUpdateTime;

	// Constructors

	/** default constructor */
	public DataCollectBatch() {
	}

	/** full constructor */
	public DataCollectBatch(String batchNum, String fileName, String source, String status,
			Long dataCount, Long importCount, Long createUser, Date createTime,
			Date lastUpdateTime) {
		this.batchNum = batchNum;
		this.fileName = fileName;
		this.source = source;
		this.status = status;
		this.dataCount = dataCount;
		this.importCount = importCount;
		this.createUser = createUser;
		this.createTime = createTime;
		this.lastUpdateTime = lastUpdateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "DATA_COLLECT_BATCH_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getDataCollectBatchId() {
		return this.dataCollectBatchId;
	}

	public void setDataCollectBatchId(Long dataCollectBatchId) {
		this.dataCollectBatchId = dataCollectBatchId;
	}

	@Column(name = "BATCH_NUM", length = 128)
	public String getBatchNum() {
		return this.batchNum;
	}

	public void setBatchNum(String batchNum) {
		this.batchNum = batchNum;
	}

	@Column(name = "SOURCE", length = 28)
	public String getSource() {
		return this.source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	@Column(name = "STATUS", length = 16)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	@Column(name = "DATA_COUNT", precision = 18, scale = 0)
	public Long getDataCount() {
		return this.dataCount;
	}

	public void setDataCount(Long dataCount) {
		this.dataCount = dataCount;
	}

	@Column(name = "IMPORT_COUNT", precision = 18, scale = 0)
	public Long getImportCount() {
		return this.importCount;
	}

	public void setImportCount(Long importCount) {
		this.importCount = importCount;
	}

	@Column(name = "CREATE_USER", precision = 18, scale = 0)
	public Long getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 7)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "LAST_UPDATE_TIME", length = 7)
	public Date getLastUpdateTime() {
		return this.lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	
	@Column(name = "FILE_NAME", length = 1024)
	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

}